Integrand size = 27, antiderivative size = 96 \[ \int \frac {\cot ^4(c+d x) \csc (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {7 \text {arctanh}(\cos (c+d x))}{8 a^2 d}+\frac {2 \cot (c+d x)}{a^2 d}+\frac {2 \cot ^3(c+d x)}{3 a^2 d}-\frac {7 \cot (c+d x) \csc (c+d x)}{8 a^2 d}-\frac {\cot (c+d x) \csc ^3(c+d x)}{4 a^2 d} \]
[Out]
Time = 0.17 (sec) , antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {2948, 2836, 3853, 3855, 3852} \[ \int \frac {\cot ^4(c+d x) \csc (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {7 \text {arctanh}(\cos (c+d x))}{8 a^2 d}+\frac {2 \cot ^3(c+d x)}{3 a^2 d}+\frac {2 \cot (c+d x)}{a^2 d}-\frac {\cot (c+d x) \csc ^3(c+d x)}{4 a^2 d}-\frac {7 \cot (c+d x) \csc (c+d x)}{8 a^2 d} \]
[In]
[Out]
Rule 2836
Rule 2948
Rule 3852
Rule 3853
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \frac {\int \csc ^5(c+d x) (a-a \sin (c+d x))^2 \, dx}{a^4} \\ & = \frac {\int \left (a^2 \csc ^3(c+d x)-2 a^2 \csc ^4(c+d x)+a^2 \csc ^5(c+d x)\right ) \, dx}{a^4} \\ & = \frac {\int \csc ^3(c+d x) \, dx}{a^2}+\frac {\int \csc ^5(c+d x) \, dx}{a^2}-\frac {2 \int \csc ^4(c+d x) \, dx}{a^2} \\ & = -\frac {\cot (c+d x) \csc (c+d x)}{2 a^2 d}-\frac {\cot (c+d x) \csc ^3(c+d x)}{4 a^2 d}+\frac {\int \csc (c+d x) \, dx}{2 a^2}+\frac {3 \int \csc ^3(c+d x) \, dx}{4 a^2}+\frac {2 \text {Subst}\left (\int \left (1+x^2\right ) \, dx,x,\cot (c+d x)\right )}{a^2 d} \\ & = -\frac {\text {arctanh}(\cos (c+d x))}{2 a^2 d}+\frac {2 \cot (c+d x)}{a^2 d}+\frac {2 \cot ^3(c+d x)}{3 a^2 d}-\frac {7 \cot (c+d x) \csc (c+d x)}{8 a^2 d}-\frac {\cot (c+d x) \csc ^3(c+d x)}{4 a^2 d}+\frac {3 \int \csc (c+d x) \, dx}{8 a^2} \\ & = -\frac {7 \text {arctanh}(\cos (c+d x))}{8 a^2 d}+\frac {2 \cot (c+d x)}{a^2 d}+\frac {2 \cot ^3(c+d x)}{3 a^2 d}-\frac {7 \cot (c+d x) \csc (c+d x)}{8 a^2 d}-\frac {\cot (c+d x) \csc ^3(c+d x)}{4 a^2 d} \\ \end{align*}
Time = 1.73 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.21 \[ \int \frac {\cot ^4(c+d x) \csc (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {\left (\csc \left (\frac {1}{2} (c+d x)\right )+\sec \left (\frac {1}{2} (c+d x)\right )\right )^4 \left (45 \cos (c+d x)+84 \left (\log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )\right ) \sin ^4(c+d x)+\cos (3 (c+d x)) (-21+32 \sin (c+d x))-48 \sin (2 (c+d x))\right )}{1536 a^2 d (1+\sin (c+d x))^2} \]
[In]
[Out]
Time = 0.40 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.27
method | result | size |
parallelrisch | \(\frac {3 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-3 \left (\cot ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-16 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+16 \left (\cot ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+48 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-48 \left (\cot ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+168 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-144 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+144 \cot \left (\frac {d x}{2}+\frac {c}{2}\right )}{192 d \,a^{2}}\) | \(122\) |
derivativedivides | \(\frac {\frac {\left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4}-\frac {4 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+4 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-12 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {1}{4 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}+\frac {4}{3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}+14 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {12}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {4}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{16 d \,a^{2}}\) | \(124\) |
default | \(\frac {\frac {\left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4}-\frac {4 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+4 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-12 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {1}{4 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}+\frac {4}{3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}+14 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {12}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {4}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{16 d \,a^{2}}\) | \(124\) |
risch | \(\frac {21 \,{\mathrm e}^{7 i \left (d x +c \right )}-96 i {\mathrm e}^{4 i \left (d x +c \right )}-45 \,{\mathrm e}^{5 i \left (d x +c \right )}+128 i {\mathrm e}^{2 i \left (d x +c \right )}-45 \,{\mathrm e}^{3 i \left (d x +c \right )}-32 i+21 \,{\mathrm e}^{i \left (d x +c \right )}}{12 a^{2} d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{4}}-\frac {7 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{8 d \,a^{2}}+\frac {7 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{8 d \,a^{2}}\) | \(134\) |
norman | \(\frac {-\frac {1}{64 a d}+\frac {7 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{192 d a}-\frac {3 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d a}+\frac {15 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d a}-\frac {15 \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d a}+\frac {3 \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d a}-\frac {7 \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{192 d a}+\frac {\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )}{64 d a}+\frac {6 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {7 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d a}+\frac {19 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6 d a}}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4} a \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {7 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d \,a^{2}}\) | \(245\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 149, normalized size of antiderivative = 1.55 \[ \int \frac {\cot ^4(c+d x) \csc (c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {42 \, \cos \left (d x + c\right )^{3} - 21 \, {\left (\cos \left (d x + c\right )^{4} - 2 \, \cos \left (d x + c\right )^{2} + 1\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + 21 \, {\left (\cos \left (d x + c\right )^{4} - 2 \, \cos \left (d x + c\right )^{2} + 1\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) - 32 \, {\left (2 \, \cos \left (d x + c\right )^{3} - 3 \, \cos \left (d x + c\right )\right )} \sin \left (d x + c\right ) - 54 \, \cos \left (d x + c\right )}{48 \, {\left (a^{2} d \cos \left (d x + c\right )^{4} - 2 \, a^{2} d \cos \left (d x + c\right )^{2} + a^{2} d\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {\cot ^4(c+d x) \csc (c+d x)}{(a+a \sin (c+d x))^2} \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 195 vs. \(2 (88) = 176\).
Time = 0.22 (sec) , antiderivative size = 195, normalized size of antiderivative = 2.03 \[ \int \frac {\cot ^4(c+d x) \csc (c+d x)}{(a+a \sin (c+d x))^2} \, dx=-\frac {\frac {\frac {144 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {48 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {16 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - \frac {3 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}}}{a^{2}} - \frac {168 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}} - \frac {{\left (\frac {16 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {48 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {144 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - 3\right )} {\left (\cos \left (d x + c\right ) + 1\right )}^{4}}{a^{2} \sin \left (d x + c\right )^{4}}}{192 \, d} \]
[In]
[Out]
none
Time = 0.38 (sec) , antiderivative size = 157, normalized size of antiderivative = 1.64 \[ \int \frac {\cot ^4(c+d x) \csc (c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {\frac {168 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a^{2}} - \frac {350 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 144 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 48 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 16 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 3}{a^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4}} + \frac {3 \, a^{6} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 16 \, a^{6} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 48 \, a^{6} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 144 \, a^{6} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{8}}}{192 \, d} \]
[In]
[Out]
Time = 10.13 (sec) , antiderivative size = 151, normalized size of antiderivative = 1.57 \[ \int \frac {\cot ^4(c+d x) \csc (c+d x)}{(a+a \sin (c+d x))^2} \, dx=\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{4\,a^2\,d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{12\,a^2\,d}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{64\,a^2\,d}+\frac {7\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{8\,a^2\,d}-\frac {3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4\,a^2\,d}+\frac {{\mathrm {cot}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,\left (12\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3-4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+\frac {4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{3}-\frac {1}{4}\right )}{16\,a^2\,d} \]
[In]
[Out]